package com.icez.base_compose_framework.util

import androidx.window.core.layout.WindowHeightSizeClass
import androidx.window.core.layout.WindowSizeClass
import androidx.window.core.layout.WindowWidthSizeClass

object BWindowSizeClassUtil {

    /**
     * 判断是否为紧凑型窗口
     * @param windowSizeClass 窗口尺寸类
     */
    fun isCompact(windowSizeClass: WindowSizeClass):Boolean{
        return windowSizeClass.windowWidthSizeClass == WindowWidthSizeClass.COMPACT || windowSizeClass.windowHeightSizeClass == WindowHeightSizeClass.COMPACT
    }
}